package com.financing.platform.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.financing.platform.dto.ProductSupplierDTO;

public interface IProductSupplierDao extends IBaseDao {
	
	/**
	 * 
	
	* @Title: addProductSupplier
	
	* @Description: 新增个人产品供应方
	
	* @param @param productSupplierDto
	* @param @return    设定文件
	
	* @return ProductSupplierDTO    返回类型
	
	* @throws
	 */
	public int addProductSupplier(ProductSupplierDTO productSupplierDto) throws SQLException ;
	
	/**
	 * @throws SQLException 
	 * 
	
	* @Title: queryProductSupplier
	
	* @Description: 查询个人产品供应方
	
	* @param @param productSupplierDto
	* @param @return    设定文件
	
	* @return ProductSupplierDTO    返回类型
	
	* @throws
	 */
	public List<ProductSupplierDTO> queryProductSupplier(ProductSupplierDTO productSupplierDto) throws SQLException;
	/**
	 * @throws SQLException 
	 * 
	
	* @Title: queryProductSupplierEmailById
	
	* @Description: 查询个人产品供应方下的产品发送邮件
	
	* @param @return    设定文件
	* @throws
	 */
	public List<Map<String,Object>> queryProductSupplierEmailById(String id) throws SQLException;
	/**
	 * @throws SQLException 
	 * 
	
	* @Title: queryForegroundSupplierEmail
	
	* @Description: 有产品的供应方
	
	* @param @return    设定文件
	* @throws
	 */
	public List<Map<String,Object>> queryProductSupplierInfoEmail() throws SQLException;

	/**
	 * 
	
	* @Title: editProductSupplier
	
	* @Description: 编辑个人产品供应方
	
	* @param @param productSupplierDto
	* @param @return    设定文件
	
	* @return ProductSupplierDTO    返回类型
	
	* @throws
	 */
	public int editProductSupplier(Map map) throws SQLException ;

	/**
	 * 
	
	* @Title: queryProductSupplierCount
	
	* @Description: 查询个人产品供应方总数
	
	* @param @param productSupplierDto
	
	* @return int    返回类型
	
	* @throws
	 */
	public int queryProductSupplierCount(ProductSupplierDTO productSupplierDto) throws SQLException ;

	/**
	 * @param productSupplierDto
	 * @return
	 * @throws SQLException
	 */
	public ProductSupplierDTO queryProductSupplierInfo(	ProductSupplierDTO productSupplierDto)throws SQLException ;
	
}
